/**
 * CategoryThread.java        2011-8-13 下午11:24:11
 * caie
 * 版权所有 (c) 2010-2011 江苏鸿信系统集成有限公司
 */


package com.qh.util;

import java.util.HashMap;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;


/** 
 * <p>Description: [工具类列表获取线程]</p>
 * @author  <a href="mailto: 18951603040@189.cn">蔡锷</a>
 * @version 1.0
 */
public class CategoryThread extends BaseHttpServletThread {

	String type;
	public CategoryThread(Handler handler, String url, HashMap params,String type) {
		
		super(handler, url, params);
		
		this.type=type;
		// TODO Auto-generated constructor stub
	}

	/**
	 * <p>Description: The resolveObject</p>
	 * @author: caie
	 * @update: [updatedate] [changer][change description]
	 */

	@Override
	public void resolveObject() {
		// TODO Auto-generated method stub
		Message msg = handler.obtainMessage();
		msg.what = 0x0011;
        Bundle bundle = new Bundle();
        
        try {
        	bundle.putString("type", type);
        	//获取类别列表
			// 从接口获取bundle
				bundle.putString("data",super.SubAndGet());
        } catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	
        msg.setData(bundle);
        handler.sendMessage(msg);

	}

}
